package com.achang.achangmall.product.service;

import com.achang.achangmall.product.vo.AttrGroupRelationVo;
import com.achang.achangmall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.achang.common.utils.PageUtils;
import com.achang.achangmall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author achang
 * @email 995931576@qq.com
 * @date 2021-09-20 22:51:19
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo vo);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Integer catelogId);

    //根据分组id，找到对应关联属性
    List<AttrEntity> getRelationAttr(Integer attrgroupId);

    void deleteRelation(List<AttrGroupRelationVo> voList);

    PageUtils getNotRelationAttr(Integer attrgroupId, Map<String, Object> params);

    List<Long> selectSearchAttrIds(List<Long> attrIdList);
}

